class ParamsTypeError(Exception):
    pass

def a1(x):
    try:
        l = [0, 1]
        for i in range(int(x)):
            l.append(1)
            l[i+2] = l[i+1] + l[i]
        print(l)
    except:
         raise ParamsTypeError('wrong type')

def a2(y):
    try:
        y = int(y)
        l = [0, 1]
        i = 0
        while i < y:
                l.append(1)
                l[i+2] = l[i+1] + l[i]
                i += 1
        print(l)
    except:
        raise ParamsTypeError('wrong type')


a1('10')
a2('10')

